package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.hosp.service.impl.DepartmentServiceImpl;
import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author zhmwi
 * @Date 2021/7/8
 * @Dersciption
 */

public interface DepartmentService  {
    //上传科室
    void save(Map<String, Object> paramMap);

    //分页查询科室
    Page<Department> queryByPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    //删除科室
    void remove(String hoscode, String depcode);

    //根据医院code查询所有科室
    List<DepartmentVo> getDepartmentList(String hoscode);

    //根据医院code 科室code查询科室名
    String getDepName(String hoscode, String depcode);

    //前台 -- 根据医院编号 科室编号查询科室对象
    Department getDepartment(String hoscode, String depcode);
}
